import request from '@/utils/request'

// 查询立库盘点审核列表
export function inventoryAudit(data) {
  return request({
    url: '/ims/inventory/audit',
    method: 'post',
    data,
  })
}

// 查询立库盘点审核列表
export function listInventory(query) {
  return request({
    url: '/ims/inventory/list',
    method: 'get',
    params: query,
  })
}

// 查询立库盘点审核详细
export function getInventory(inventoryId) {
  return request({
    url: '/ims/inventory/' + inventoryId,
    method: 'get',
  })
}

// 新增立库盘点审核
export function addInventory(data) {
  return request({
    url: '/ims/inventory',
    method: 'post',
    data: data,
  })
}

// 修改立库盘点审核
export function updateInventory(data) {
  return request({
    url: '/ims/inventory',
    method: 'put',
    data: data,
  })
}

// 删除立库盘点审核
export function delInventory(inventoryId) {
  return request({
    url: '/ims/inventory/' + inventoryId,
    method: 'delete',
  })
}
